package com.example.pojo.dto;

import jakarta.validation.constraints.Pattern;
import lombok.Data;

/**
 * @author crt
 */
@Data
public class LoginDto {

    @Pattern(regexp = "^\\S{5,16}$",message = "用户名需要再5到16位")
    private String username;

    @Pattern(regexp = "^\\S{5,16}$",message = "密码需要再5到16位")
    private String password;

}
